//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright 2007 CORE Solutions Limited
// All rights reserved.
// PROPRIETARY AND CONFIDENTIAL INFORMATION.
// Use is subject to license terms.
//
// FUNCTION ID      :   CATALOG_DTL
// AUTHOR           :   Saint Peng 
// DATE CREATE      :   2007/07/17
// DESCRIPTION      :   a ROW file for the function, CATALOG_DTL
//                  :   
//                  :   
//                  :   
//
// MODIFICATION HISTORY:
// DATE         AUTHOR          VERSION NO.         COMMENT
// -----------  --------------  ------------------  -------------------
// 2007/07/17   Saint Peng      1.0                 source is generated.
//
//
//
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

package com.erp.app.catalog.catalogDtl.web;

import com.erp.framework.controller.form.MultiRowTemplate;
import com.erp.framework.util.CommonUtil;
import com.erp.framework.types.*;
import com.erp.app.catalog.catalogDtl.pk.*;

/**
* <p>A <strong>Row</strong> is a JavaBean which provides property
* getter and setter methods for all of the bean properties, and implements
* <code>Serializable</code>, as required by the JavaBean specification
* The main purpose for this bean is to store the detail childs.
*
* @author          Saint Peng 
* @version 1.0     2007/07/17
* @since           FrameWork 1.0
*
*/
public class CatalogDtlRow extends MultiRowTemplate {

	//DB Table Name: T_CATALOG_DTL

	//PK Attributes
	private String companyCode = "";                                                                   //DB Column Name: COMPANY_CODE
	private String dtlId = "";                                                                         //DB Column Name: DTL_ID

	//Other Attributes
	private String hdrLangCode = "";                                                                   //DB Column Name: LANG_CODE
	private String hdrDtlType = "";                                                                    //DB Column Name: DTL_TYPE
	private String hdrDtlName = "";                                                                    //DB Column Name: DTL_NAME
	private String hdrUom = "";                                                                        //DB Column Name: UOM
	private String hdrRecursiveTime = "";                                                              //DB Column Name: RECURSIVE_TIME
	private String hdrStatus = "";                                                                     //DB Column Name: STATUS
	private String hdrPrecision = "";                                                                  //DB Column Name: PRECISION
	private String hdrLength = "";                                                                     //DB Column Name: LENGTH
	private String hdrOptionCode = "";                                                                 //DB Column Name: OPTION_CODE
	private String createUser = "";                                                                    //DB Column Name: CREATE_USER
	private String createDate = "";                                                                    //DB Column Name: CREATE_DATE
	private String updateUser = "";                                                                    //DB Column Name: UPDATE_USER
	private String updateDate = "";                                                                    //DB Column Name: UPDATE_DATE
	private String hdrDcInd = "";                                                                      //DB Column Name: DC_IND
	private String hdrDcDate = "";                                                                     //DB Column Name: DC_DATE

	/**
	* Converts to a string representing the data in this object.
	* A new <code>String</code> object is allocated and initialized to 
	* contain the character sequence currently represented by this 
	* object. This <code>String</code> is then returned. Subsequent 
	* changes to this object do not affect the contents of the 
	* <code>String</code>. 
	*
	* @return     a string representation of the object.
	* @see        java.lang.Object#toString()
	* @author     Saint Peng 
	* @since      Framework 1.0
	*/
	public String toString() {
		String pkStr = "PK: {companyCode = " + this.companyCode
			+ "\n, dtlId = " + this.dtlId + "}\n";
		String colStr = "COL: {hdrLangCode = " + this.hdrLangCode
			+ "\n, hdrDtlType = " + this.hdrDtlType
			+ "\n, hdrDtlName = " + this.hdrDtlName
			+ "\n, hdrUom = " + this.hdrUom
			+ "\n, hdrRecursiveTime = " + this.hdrRecursiveTime
			+ "\n, hdrStatus = " + this.hdrStatus
			+ "\n, hdrPrecision = " + this.hdrPrecision
			+ "\n, hdrLength = " + this.hdrLength
			+ "\n, hdrOptionCode = " + this.hdrOptionCode
			+ "\n, createUser = " + this.createUser
			+ "\n, createDate = " + this.createDate
			+ "\n, updateUser = " + this.updateUser
			+ "\n, updateDate = " + this.updateDate
			+ "\n, hdrDcInd = " + this.hdrDcInd
			+ "\n, hdrDcDate = " + this.hdrDcDate + "}\n";
		return "CatalogDtlRow.toString() is:\n" + pkStr + colStr;
	}

	////////////////////////////////////////////////////////////////////////////////
	//Generated Accessors (get/set methods)
	////////////////////////////////////////////////////////////////////////////////

	public String getCompanyCode() {
		return this.companyCode;
	}

	public String getDtlId() {
		return this.dtlId;
	}

	public String getHdrLangCode() {
		return this.hdrLangCode;
	}

	public String getHdrDtlType() {
		return this.hdrDtlType;
	}

	public String getHdrDtlName() {
		return this.hdrDtlName;
	}

	public String getHdrUom() {
		return this.hdrUom;
	}

	public String getHdrRecursiveTime() {
		return this.hdrRecursiveTime;
	}

	public String getHdrStatus() {
		return this.hdrStatus;
	}

	public String getHdrPrecision() {
		return this.hdrPrecision;
	}

	public String getHdrLength() {
		return this.hdrLength;
	}

	public String getHdrOptionCode() {
		return this.hdrOptionCode;
	}

	public String getCreateUser() {
		return this.createUser;
	}

	public String getCreateDate() {
		return this.createDate;
	}

	public String getUpdateUser() {
		return this.updateUser;
	}

	public String getUpdateDate() {
		return this.updateDate;
	}

	public String getHdrDcInd() {
		return this.hdrDcInd;
	}

	public String getHdrDcDate() {
		return this.hdrDcDate;
	}

	public void setCompanyCode(String companyCode) {
		this.companyCode = CommonUtil.toCode(companyCode);
	}

	public void setDtlId(String dtlId) {
		this.dtlId = CommonUtil.toCode(dtlId);
	}

	public void setHdrLangCode(String hdrLangCode) {
		this.hdrLangCode = CommonUtil.trim(hdrLangCode);
	}

	public void setHdrDtlType(String hdrDtlType) {
		this.hdrDtlType = CommonUtil.trim(hdrDtlType);
	}

	public void setHdrDtlName(String hdrDtlName) {
		this.hdrDtlName = CommonUtil.trim(hdrDtlName);
	}

	public void setHdrUom(String hdrUom) {
		this.hdrUom = CommonUtil.trim(hdrUom);
	}

	public void setHdrRecursiveTime(String hdrRecursiveTime) {
		this.hdrRecursiveTime = CommonUtil.trim(hdrRecursiveTime);
	}

	public void setHdrStatus(String hdrStatus) {
		this.hdrStatus = CommonUtil.trim(hdrStatus);
	}

	public void setHdrPrecision(String hdrPrecision) {
		this.hdrPrecision = CommonUtil.trim(hdrPrecision);
	}

	public void setHdrLength(String hdrLength) {
		this.hdrLength = CommonUtil.trim(hdrLength);
	}

	public void setHdrOptionCode(String hdrOptionCode) {
		this.hdrOptionCode = CommonUtil.trim(hdrOptionCode);
	}

	public void setCreateUser(String createUser) {
		this.createUser = CommonUtil.trim(createUser);
	}

	public void setCreateDate(String createDate) {
		this.createDate = CommonUtil.trim(createDate);
	}

	public void setUpdateUser(String updateUser) {
		this.updateUser = CommonUtil.trim(updateUser);
	}

	public void setUpdateDate(String updateDate) {
		this.updateDate = CommonUtil.trim(updateDate);
	}

	public void setHdrDcInd(String hdrDcInd) {
		this.hdrDcInd = CommonUtil.trim(hdrDcInd);
	}

	public void setHdrDcDate(String hdrDcDate) {
		this.hdrDcDate = CommonUtil.trim(hdrDcDate);
	}

	////////////////////////////////////////////////////////////////////////////////
	//Other Accessors (get/set methods)
	////////////////////////////////////////////////////////////////////////////////


	public CatalogDtlPk getPk() {
		return new CatalogDtlPk(String.valueOf(this.getCompanyCode()), this.getDtlId());
	}
}
